﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ContactsFromExcel.aspx.cs"
    Inherits="Business_Cisoft3G_ContactsManage_ContactsFromExcel" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>通讯录导入</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/font.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/style_ts.css" rel="stylesheet" type="text/css" />
<style type="text/css">
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
    </style>
    <script type="text/javascript" src="../../../js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript" src="../../../js/jquery.blockUI.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#btnImport').click(function() {
                $('#lblTS').html('<h4>您确定要导入数据吗？</h4>');
                $('#btnConfirm2').css('display','');
                $('#btnCloseAll2').click(function() {
                    $.unblockUI();
                });
                $('#btnCancel').show();
                $('#btnCancel').click(function() {
                    $.unblockUI();
                });
                $('#btnConfirm2').click(function() {
                    $('#Button1').click();
                    javascript: __doPostBack('LinkButton1', '');
                });
                $.blockUI({
                    message: $('#Panel1'),
                    css: {
                        border: 'none',
                        padding: '15px',
                        backgroundColor: '',
                        top: ($(window).height() - 250) / 2 + 'px',
                        left: ($(window).width() - 500) / 2 + 'px'
                    }
                });
            });

        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="Scriptmanager1" runat="server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true">
    </asp:ScriptManager>
    <div class="position_list">
        <div class="position_left_list">
        </div>
        <div class="position_con_list">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="30">
                        <img src="../../../Images/3G/icon21.gif" width="14" height="14" alt="" />
                    </td>
                    <td class="cyan12">
                        通讯录导入
                    </td>
                </tr>
            </table>
        </div>
        <div class="position_right_list">
        </div>
    </div>
    <!--[if !IE]>搜素区域开始<![endif]-->
    <div class="search_list">
        <div class="search_top_list">
            <div class="search_topleft_list">
            </div>
            <!--  查询     -->
            <div class="search_topbg_list">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30" align="left" valign="middle" style="padding-top: 4px;">
                            <img src="../../../Images/3G/icon_logo.gif" width="22" height="22" />
                        </td>
                        <td width="100" class="cyan13_bold" style="padding-top: 5px;">
                            系统温馨提示栏
                        </td>
                        <td style="padding-top: 5px;">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="search_topright_list">
            </div>
        </div>
        <!--   列表     -->
        <div class="index_search_con_list">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="73798f" id="tableList">
                <tr class="cyan12" bgcolor="#1E3541">
                    <td align="left" valign="middle">
                        文件选择：<asp:FileUpload ID="FileUpload1" runat="server" Width="363px" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="../../../uploads/Template/通讯录模板.xls" class="cyan12_link" title="请点击下载">通讯录模板下载</a><br />
                        <asp:Label ForeColor="Red" ID="Label2" runat="server"></asp:Label><br />
                        <asp:Label ForeColor="Red" ID="Label1" runat="server"></asp:Label><br />
                        <input type="button" id="btnImport" />
                        <%--<asp:Button ID="Button1" runat="server" Text="Button" OnClick="btnImport_Click" Visible="false" />--%>
                        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="btnImport_Click"></asp:LinkButton>
                        <%--<asp:Button ID="btnImport" runat="server" ToolTip="导入" Text="" OnClick="btnImport_Click" />--%>
                        <a href="ContactsManage.aspx" title="返回">
                            <img style="border: 0px; padding-top: 0px; vertical-align: bottom" alt="" src="../../../Images/3G/button_fanhui.gif"></span></a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="search_bottom_list">
        <div class="search_bottomleft_list">
        </div>
        <div class="search_bottombg_list">
        </div>
        <div class="search_bottomright_list">
        </div>
    </div>
    <!--[if !IE]>搜素区域结束<![endif]-->
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="LinkButton2"
        PopupControlID="Panel1" BackgroundCssClass="modalBackground" OnOkScript="onOk()"
        DropShadow="true" PopupDragHandleControlID="Panel2" CancelControlID="btnCloseAll2">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="Panel1" runat="server" Style="display: none; width: 450px; vertical-align: middle;">
        <div class="attention">
            <asp:Panel ID="Panel2" runat="server" Style="vertical-align: middle;">
                <div class="attention_top">
                    <div class="attention_topleft">
                    </div>
                    <div class="attention_topmid">
                        <table width="98%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left" valign="middle" class="title">
                                    提示信息
                                </td>
                                <td align="right" valign="middle" width="30">
                                    <asp:Button ID="btnCloseAll2" runat="server" Text="" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="attention_topright">
                    </div>
                </div>
            </asp:Panel>
            <div class="attention_con">
                <asp:Panel ID="Panel3" runat="server">
                    <table border="1" runat="server" id="table2" cellpadding="5" cellspacing="0" bordercolor="#0e62a7"
                        style="width: 100%; text-align: center; border-collapse: collapse;">
                        <tr>
                            <td style="text-align: Center">
                                <asp:Label ID="lblTS" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="navi_link">
                                <asp:Button ID="btnConfirm2" runat="server" ToolTip="确定" Style="display: none" />
                                <asp:Button ID="btnCancel" runat="server" Text="" Style="display: none" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </asp:Panel>
    <asp:LinkButton ID="LinkButton2" runat="server" Visible="true"></asp:LinkButton>
    </form>
</body>
</html>
